import request from '@/utils/request'

export function merchantList(params) {
  return request({
    url: '/online/developer-admin/mrch', params,
    method: 'GET'
  })
}
export function getMerchantInfo(mrchId) {
  return request({
    url: `/online/authorization/admin/merchant/${mrchId}`,
    method: 'GET'
  })
}
export function lockMerchant(mrchId, data) {
  return request({
    url: `/online/authorization/admin/merchant/${mrchId}/lock`, data,
    method: 'POST'
  })
}
export function unlockMerchant(mrchId, data) {
  return request({
    url: `/online/authorization/admin/merchant/${mrchId}/unlock`, data,
    method: 'POST'
  })
}

export function merchantDeviceList(mrchId, params) {
  return request({
    url: `/online/developer-admin//mrch/${mrchId}/dev`, params,
    method: 'GET'
  })
}
export function merchantAppList(mrchId, params) {
  return request({
    url: `/online/developer-admin/mrch/${mrchId}/app`, params,
    method: 'GET'
  })
}
export function merchantAppTrialList(mrchId, params) {
  return request({
    url: `/online/developer-admin/mrch/${mrchId}/app/trial`, params,
    method: 'GET'
  })
}
